← Back to issue list

Error message displays name of first application when a secondary application fails name validation

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1851003
Type
issue
State
open
Author
~ec0
Labels
Created
2019-11-02 05:19:47.764394+00:00
Updated
2019-11-02 05:19:47.764394+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

When specifying multiple apps in a snapcraft.yaml file, per below example, where one of the names fails naming rule validation, the first application is listed as the problematic application entry: apps: matrix-synapse: command: synctl --no-daemonize start $SNAP_COMMON/homeserver.yaml stop-command: synctl -c $SNAP_COMMON stop plugs: [network-bind, network] daemon: simple hash_password: command: hash_password aliases: - hash_password The 'hash_password' name is invalid given the underscore, however the error produced is per below: Issues while validating snapcraft.yaml: The 'apps' property does not match the required schema: 'matrix-synapse' is not a valid app name. App names consist of upper- and lower-case alphanumeric characters and hyphens. They cannot start or end with a hyphen. This should indicate the problematic application (hash_password) rather than the first and valid application (matrix-synapse).

Evaluation history

No evaluation history available.